


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
	<head>
		<title>openWYSIWYG</title>
	
		<!-- 
			Include the WYSIWYG javascript files
		-->
		<script type="text/javascript" src="scripts/wysiwyg.js"></script>
		<script type="text/javascript" src="scripts/wysiwyg-settings.js"></script>
		<!-- 
			Attach the editor on the textareas
		-->
		<script type="text/javascript">
			// Use it to attach the editor to all textareas with full featured setup
		//	WYSIWYG.attach('all', full);
			
			// Use it to attach the editor directly to a defined textarea
		//	WYSIWYG.attach('textarea1'); // default setup
			WYSIWYG.attach('textarea2',full); // full featured setup
	//		WYSIWYG.attach('textarea3', small); // small setup
			
			// Use it to display an iframes instead of a textareas
			//WYSIWYG.display('all', full);  
		</script>
		


	</head>
<body style="overflow-x: hidden; overflow-y: hidden;" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" align="center" bgcolor="#FFFFFF">

<?

if(count($_POST)>0){

foreach ($_POST as $key => $value) {

//	$value=str_replace('<','_',$value);

  $value=str_replace('src="uploads/','src="http://192.168.65.166:50002/framework_editor_contenido/uploads/',$value);
	$array[$key]=$value;


	}


$fichero = 'hola.php';
$codificado =  file_get_contents( $fichero ) ;
$fichero_resultado = $array;
file_put_contents( $fichero, $fichero_resultado );


/*
echo '<pre>';
print_r($array);
echo '</pre>';
*/
}

?>

<form name="exampleForm" action="index.php" method="post">
<textarea id="textarea2" name="test2" style="width:100%; height:100%;">

<? include('/home/juan/servidor_web/nuevo_esquema/var/micasa/framework_editor_contenido/hola.php');?>
</textarea>

</form>			
</body>
</html>
